Python code for K Means Clustering